import { Method } from '../method'
import service from '../service'

export default {
  downloadResource(data: any) {
    // 获取下载链接
    return service({
      url: `/seal/rest/downloadCenter/downloadResource`,
      method: Method.POST,
      body: data,
    })
  },
  queryResourceList(data: any) {
    // 分页查询下载中心列表
    return service({
      url: `/seal/rest/downloadCenter/queryResourceList`,
      method: Method.POST,
      body: data,
    })
  },
  getNewsDetail(data: any) {
    // 获取公告通知详情
    return service({
      url: `/seal/rest/news/getDetailById`,
      method: Method.POST,
      body: data,
    })
  },
  queryNewsList(data: any) {
    // 获取新闻列表
    return service({
      url: `/seal/rest/news/queryNewsList`,
      method: Method.POST,
      body: data,
    })
  },
  queryFAQList(data: any) {
    // 获取faq列表
    return service({
      url: `/seal/rest/faq/queryFAQList`,
      method: Method.POST,
      body: data,
    })
  },
}
